#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
    int removeElement(vector<int>& nums, int val) {
		if (nums.size() == 0)
			return 0;
		vector<int> ret;
		for_each(nums.begin(),nums.end(),[&](int i)
		{
			if (i != val)
				ret.push_back(i);
		});
		nums = ret;
		return ret.size();        
    }
};
int main()
{
	
}